package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;

public class KnowLedgeAnnounceSearchActivity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    String startDate = getIntent().getStringExtra(KnowLedgeAnnounceSearchFragment.EXTRA_START_DATE);
    String endDate = getIntent().getStringExtra(KnowLedgeAnnounceSearchFragment.EXTRA_END_DATE);
    String typeName = getIntent().getStringExtra(KnowLedgeAnnounceSearchFragment.EXTRA_TYPE_NAME);
    String typeCode = getIntent().getStringExtra(KnowLedgeAnnounceSearchFragment.EXTRA_TYPE_CODE);
    String keyWords = getIntent().getStringExtra(KnowLedgeAnnounceSearchFragment.EXTRA_KEY_WORDS);
    return KnowLedgeAnnounceSearchFragment.newInstance(startDate, endDate, typeName, typeCode,
        keyWords);
  }
}
